//
//  SHAnchorPreviewController.m
//  Netease
//
//  Created by 王方伟 on 2017/8/22.
//  Copyright © 2017年 wfw. All rights reserved.
//

#import "SHAnchorPreviewController.h"
#import "UIBarButtonItem+Extension.h"
#import "SHDragView.h"

@interface SHAnchorPreviewController ()
@property (weak, nonatomic) SHDragView *dragView;
@end

@implementation SHAnchorPreviewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupPlayView];
    
}

- (void)setupPlayView{
    SHDragView *dragView = (SHDragView *)[self.view drageView];
    if (dragView == nil) {
        dragView = [[SHDragView alloc] init];
    }
    dragView.dragEnable = NO;
    dragView.frame = self.view.bounds;
    [self.view addSubview:dragView];
    _dragView = dragView;
    self.dragView.backgroundColor = [UIColor grayColor];

}

- (void)dealloc{
    [[NSNotificationCenter defaultCenter] postNotificationName:@"VideoPaneNotifion" object:self.dragView userInfo:nil];
}

#pragma mark 隐藏状态栏
- (BOOL)prefersStatusBarHidden{
    return YES;
}

#pragma mark 设置导航栏
- (void)setupNavigation{
    self.view.backgroundColor = SHColor(223, 226, 230);
}
@end
